﻿using Prism.Commands;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrismRegionJournal.ViewModels
{
    public class MainViewModel
    {
        public DelegateCommand ShowContentCommand { get; set; }

        public MainViewModel(IRegionManager regionManager)
        {
            ShowContentCommand = new DelegateCommand(() =>
            {
                regionManager.RequestNavigate("ContentRegion", "ViewA");
            });
        }
    }
}
